package com.swxy.club.dto.dt;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.swxy.club.enums.AuditStatus;
import com.swxy.club.serializer.EnumFlatSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "社团审批查询条件", description = "社团审批分页查询参数")
public class ClubApprovalQueryDTO {

    @ApiModelProperty(value = "当前页码", example = "1")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "每页数量", example = "10")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "社团名称(模糊查询)", example = "篮球")
    private String clubName;

    @JsonSerialize(using = EnumFlatSerializer.class)
    @ApiModelProperty(value = "审批状态", example = "PENDING")
    private AuditStatus status;
}